package com.yyplatform.admin.platform.schedule.service;

import org.springframework.data.domain.Page;

import com.yyplatform.admin.platform.schedule.model.dto.JobDTO;
import com.yyplatform.admin.platform.schedule.model.dto.JobFormDTO;
import com.yyplatform.admin.platform.schedule.model.dto.JobQueryDTO;

/**
 * @author sleepforests@163.com
 * <p>
 * Created on 2024/9/21 22:50
 */
public interface JobService {

    String JOB_PARAM_KEY = "JOB_PARAM_KEY";
    String JOB_NAME = "TASK_";

    Page<JobDTO> query(JobQueryDTO pageQueryDTO);

    JobDTO get(Long id);

    void save(JobFormDTO formDTO);

    void update(JobFormDTO formDTO);

    void delete(Long id);

    void doAction(Long id, String action);


    void initJob();

}
